package com.zzyl.mapper;

import com.github.pagehelper.Page;
import com.zzyl.entity.NursingPlan;
import com.zzyl.vo.NursingPlanVo;
import com.zzyl.vo.NursingProjectPlanVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface NursingPlanMapper {
    List<NursingPlanVo> selectAll();

    void addPlan(NursingPlan nursingPlan);

    Page<List<NursingPlan>> pageSearch(@Param("page") int page, @Param("pageSize") int pageSize, @Param("name") String name, @Param("status") Integer status);

    NursingPlanVo getPlanById(Long id);

    void updatePlan(NursingPlan nursingPlan);

    void deletePlan(Long id);

    void ture_false(@Param("id") Long id, @Param("status") Integer status);
}
